
// request.js

import createAjax from 'uni-ajax';

const ajax = createAjax({
	 // baseUrl: 'http://192.168.110.213:9095/',
	// baseUrl: 'https://rydriver.rongyungov.com/',
	// method: 'POST',
	// header: {
	//   'Content-Type': 'application/x-www-form-urlencoded'
	// }
});

ajax.interceptors.request.use(request => {
	return request;
}, error => {
	// Do something with request error
	return error;
});

ajax.interceptors.response.use(response => {
	return response;
}, error => {
	return error;
});

const request = ajax.request;

export default request;
